package com.mdhw.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mdhw.config.R;
import com.mdhw.order.vo.PrizePoolSetVo;
import com.mdhw.system.entity.SysDictData;
import com.mdhw.system.entity.SysDictType;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface SysDictDataService extends IService<SysDictData> {
    /**
     * 新增 SysDictData
     * @param sysDictData
     * @return
     */
    R<String> addDictData(SysDictData sysDictData);

    public R<String> updateDictData(SysDictData sysDictData);


    public R deleteDictData(Long id);


    /**
     * 通过 dictType  获取 dictData
     * @param dictType
     * @return
     */
    public List<SysDictData> listByDictType(String dictType);

    public String getLabelByValue(String dictType,String dictValue);

    public Map<String, List<SysDictData>> multiDictDataListByType(String dictType);

    public PrizePoolSetVo selectPrizePoolSet();

    public BigDecimal selectPrizePoolBalance();
    // 新增奖金池金额，返回总奖金池金额
    public BigDecimal addPrizePoolBalance(BigDecimal prizePoolBalance);
    // 设置奖金池金额，返回总奖金池金额
    public BigDecimal setPrizePoolBalance(BigDecimal prizePoolBalance);

    public Map<String, Map<String,String>> multiDictDataMaptByType(String dictType);

}
